package com.xbongbong.saas.service;

import com.xbongbong.paas.toolbox.exception.XbbException;
import com.xbongbong.pro.decisiontree.pojo.dto.DecisionTreeGetDTO;
import com.xbongbong.pro.decisiontree.pojo.dto.DecisionTreeSaveDTO;
import com.xbongbong.pro.decisiontree.pojo.vo.DecisionTreeGetUpdateTimeVO;
import com.xbongbong.pro.decisiontree.pojo.vo.DecisionTreeGetVO;
import com.xbongbong.pro.decisiontree.pojo.vo.DecisionTreeSaveVO;

/**
 * 决策树
 *
 * @Author: hongxiao
 * @date: 2021-11-20 10:17
 */
public interface DecisionTreeService {
    /**
     * 获取决策树
     *
     * @param decisionTreeGetDTO 入参
     * @return
     * @throws XbbException
     */
    DecisionTreeGetVO get(DecisionTreeGetDTO decisionTreeGetDTO) throws XbbException;

    /**
     * 获取决策树最后更新时间
     *
     * @param decisionTreeGetDTO 入参
     * @return
     * @throws XbbException
     */
    DecisionTreeGetUpdateTimeVO getUpdateTime(DecisionTreeGetDTO decisionTreeGetDTO) throws XbbException;

    /**
     * 保存决策树
     *
     * @param decisionTreeSaveDTO 入参
     * @return
     * @throws XbbException
     */
    DecisionTreeSaveVO save(DecisionTreeSaveDTO decisionTreeSaveDTO) throws XbbException;
}
